package person.learn.messageconverter;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by barton on 16-5-17.
 */
@Controller
public class ConvertController {
    @RequestMapping(value = "/convert", produces = "application/x-barton")
    public
    @ResponseBody
    DemoObj convert(@RequestBody DemoObj demoObj) {
        return demoObj;
    }
}
